﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CPPEI.WorkflowCore
{
    /// <summary>
    /// 连接信息，连接一个活动到另外一个活动
    /// </summary>
    public class Link
    {
        /// <summary>
        /// 动作编号
        /// </summary>
        public Action Action { get; private set; }

        /// <summary>
        /// 目标活动
        /// </summary>
        public Activity To { get; private set; }

        /// <summary>
        /// 构造连接关系
        /// </summary>
        /// <param name="action">操作</param>
        /// <param name="to">目标活动</param>
        public Link(Action action, Activity to)
        {
            this.To = to;
            this.Action = action;
        }
    }
}
